header {
    padding: 15px;
    font-size: 18px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    .iconfont {
        font-size: 25px;
    }
    span {
        margin-top: 3px;
        font-size: 14px;
        color: #888;
    }
}

.rank {
    background: url(../img/rankbg.png) no-repeat;
    background-size: 100% 100%;
    text-align: center;
    .rank-star {
        width: 140px;
        margin: 15px 0 50px 0;
    }
}

.avatar {
    height: 52px;
    width: 52px;
    border-radius: 26px;
}

.xh {
    height: 52px;
    width: 52px;
}

.user {
    width: 90%;
    padding: 0 10px;
    margin: 10px auto;
    background: #fff;
    border-radius: 5px;
    .first-three {
        top: -30px;
        padding-bottom: 10px;
        text-align: center;
        position: relative;
        border-bottom: 1px solid #ddd;
        .first {
            margin: 0 40px;
            div {
                img:first-child {
                    height: 72px;
                    width: 72px;
                    border-radius: 36px;
                }
            }
            .first-bg {
                bottom: 60px;
                left: -24px;
                width: 120px;
                position: absolute;
            }
        }
        .second, .third {
            img:first-child {
                border: 2px solid #fff;
            }
        }
        div {
            position: relative;
            text-align: center;
            display: inline-block;
            span {
                display: block;
            }
            .flag {
                left: 50%;
                width: 20px;
                height: 25px;
                bottom: 50px;
                margin-left: -10px;
                position: absolute;
            }
        }
    }
    .rak-num {
        margin-top: 20px;
        color: #eb3952;
    }
    .name {
        color: #888;
    }
    .list {
        top: -30px;
        position: relative;
        .item {
            padding: 5px 0;
            text-align: left;
            border-bottom: 1px solid #ddd;
            img {
                margin: 0 10px;
                vertical-align: middle;
            }
            .rak-num {
                margin-top: 16px;
            }
            span:first-child{
                width: 20px;
                text-align: center;
                display: inline-block;
            }
        }
    }
}

.rule {
    color: #fff;
    padding: 10px;
    p {
        line-height: 2;
        font-size: 12px;
        text-align: left;
    }
    h4 {
        margin: 10px;
    }
}

.sign {
    height: 160px;
    background: url(../img/signBg.png) no-repeat;
    background-size: 100% 100%;
    padding: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 10px #ddd;
    .info {
        margin-top: 10px;
        text-align: center;
        span {
            color: #E81056;
        }
        .sign-btn {
            width: 120px;
            height: 120px;
            padding: 5px 0;
            background: #fff;
            margin: 10px auto;
            border-radius: 60px;
            box-shadow: 0 0 20px #999;
            p {
                width: 110px;
                height: 110px;
                margin: 0 auto;
                padding: 5px 0;
                border-radius: 60px;
                border: 10px solid #FAD52E;
                span {
                    color: #fff;
                    width: 80px;
                    height: 80px;
                    margin: 0 auto;
                    font-size: 16px;
                    line-height: 72px;
                    border-radius: 40px;
                    background: #E81056;
                    display: inline-block;
                }
            }
            &.disable{
                background-color: #ccc;
                p{
                    border-color: #ccc;
                    span{
                        background-color: #ccc;
                    }
                }
            }
        }
    }
    .day-count {
        width: 100%;
        padding-top: 8px;
        position: relative;
        .line {
            width: 255px;
            position: absolute;
            top: 14px;
            left: 50%;
            border: 2px solid #ccc;
            z-index: 1;
            margin-left: -127px;
        }
        .day {
            width: 100%;
            position: absolute;
            z-index: 10;
        }
        @for $i from 1 through 7 {
            .day-#{$i} {
                @for $j from 1 through $i {
                    .radio:nth-child(#{$j}) {
                        i{
                            background: #E81056;
                        }
                    }
                }
            }
        }
        .radio {
            width: 38px;
            text-align: center;
            display: inline-block;
            div {
                width: 16px;
                height: 16px;
                display: block;
                margin: 0 auto;
                background: #fff;
                border-radius: 8px;
                i {
                    width: 12px;
                    height: 12px;
                    background: #ccc;
                    border-radius: 6px;
                    margin-bottom: 1px;
                    display: inline-block;
                }
            }
            span {
                color: #fff;
                line-height: 2;
            }
        }
    }
}